package com.quanyan.pay.api.wechat.vo;

import com.quanyan.common.utils.StringUtil;
import com.quanyan.pay.vo.WxBaseReqVo;
import com.thoughtworks.xstream.annotations.XStreamAlias;

import javax.validation.constraints.NotNull;

/**
 * Created by Zheng.Ke
 * Date 2017/2/15.
 * 具体参见文档 https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_3
 */
@XStreamAlias("xml")
public class WxGetTransferInfoReqVo extends WxBaseReqVo {
    /** 随机字符串  */
    private String nonce_str = StringUtil.genRandomCode(32, false).toUpperCase();
    /** 商户订单号 */
    @NotNull
    private String partner_trade_no;
    /** 证书数据 */
    @NotNull
    private byte[] certData;
    /** 证书密码 */
    @NotNull
    private String certPasswd;
    /** 商户号 */
    @NotNull
    private String mch_id;
    /** 应用APPID */
    @NotNull
    private String appid;

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getPartner_trade_no() {
        return partner_trade_no;
    }

    public void setPartner_trade_no(String partner_trade_no) {
        this.partner_trade_no = partner_trade_no;
    }

    public byte[] getCertData() {
        return certData;
    }

    public void setCertData(byte[] certData) {
        this.certData = certData;
    }

    public String getCertPasswd() {
        return certPasswd;
    }

    public void setCertPasswd(String certPasswd) {
        this.certPasswd = certPasswd;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }
}
